<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let fun1 = function(){
            let a = 1;
            return function fun2 (){
                let b = 3;
                console.log(a + b);
            }
        }
        let result = fun1();
        result();
        console.log(result);

        let fun3 = function(){
            let a = 5;
            return 6;
        }
        let arr = {
            a(){
                return 5;
            }
        }
        console.log(fun3());
        console.log(arr.a());
    </script>
</body>
</html>